package com.smart.campus.service.impl;

import com.smart.campus.dao.SysMenuMapper;
import com.smart.campus.dto.SysMenu;
import com.smart.campus.service.SysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysMenuServiceImpl implements SysMenuService {

    @Autowired
    private SysMenuMapper sysMenuMapper;

    @Override
    public List<SysMenu> findSysMenuList(SysMenu sysMenu) {
        return sysMenuMapper.selectList(null);
    }

    @Override
    public List<String> selectPermsByUserId(Long userId) {
        return sysMenuMapper.selectPermsByUserId(userId);
    }
}
